// 对接后端API
import { Axios } from 'axios'

class AixAPI{
    private _client: Axios;
    constructor(){
        this._client = new Axios({
            timeout: 3000,
            headers: {'Content-Type': 'application/json'}
        });
    }

    public GetStatus = async()=>{
        // HTTP GEt /api/report/solar/status
        const res = await this._client.get('/api/report/solar/status');
        return JSON.parse(res.data);
    }
}

export { AixAPI }
